package com.sugar.follow.up.module.business.controller.admin.followuprecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 随访发起记录新增/修改 Request VO")
@Data
public class FollowUpRecordSaveReqVO {

    @Schema(description = "随访记录ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26053")
    private Long id;

    @Schema(description = "随访模板ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28969")
    @NotNull(message = "随访模板不能为空")
    private Long templateId;

    @Schema(description = "类型（0单人 1标签）", requiredMode = Schema.RequiredMode.REQUIRED, example = "29183")
    private Boolean type;

    @Schema(description = "用户/就诊人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29183")
    private Long[] userIds;

    @Schema(description = "标签", requiredMode = Schema.RequiredMode.REQUIRED, example = "29584")
    private List<String[]> tags;

    @Schema(description = "随访标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "随访标题不能为空")
    private String title;

    @Schema(description = "随访简介", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "随访简介不能为空")
    private String briefDescribe;

    @Schema(description = "随访开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "随访开始时间不能为空")
    private LocalDateTime beginTime;

    @Schema(description = "随访结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "随访结束时间不能为空")
    private LocalDateTime endTime;
}